package com.itheima.juc23.question1;

/**
 * @author li
 * 一共有1000张电影票，可以在两个窗口领取，假设每次领取的时间为3000ms
 * 要求：请用多线程模拟卖票过程并打印剩余电影票的数量
 */
public class Test {
    public static void main(String[] args) {
        MyRunnable myRunnable = new MyRunnable();
        Thread t1 = new Thread(myRunnable, "线程1");
        Thread t2 = new Thread(myRunnable, "线程2");
        t1.start();
        t2.start();
    }
}
